﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="Mercator2.WebForm4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%--http://www.codeproject.com/Tips/191067/Sending-Email-Using-ASP-NET-using-Csharp-NET-With-.aspx--%>

<%--<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmailSender.aspx.cs" Inherits="SendEmail.EmailSender" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1"  runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 144px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="style1">
            <tr>
                <td class="style2">
        <asp:Label ID="lblSender" runat="server" Text="From"></asp:Label>

                </td>
                <td>

        <asp:TextBox ID="txtSender" runat="server" Width="187px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">

        <asp:Label ID="lblPassword" runat="server" Text="Password"></asp:Label>

                </td>
                <td>

        <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" Width="189px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">

        <asp:Label ID="lblEmailAddress" runat="server" Text="To"></asp:Label>

                </td>
                <td>

        <asp:TextBox ID="txtEmail" runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">

        <asp:Label ID="lblSubject" runat="server" Text="Subject"></asp:Label>

                </td>
                <td>

        <asp:TextBox ID="txtSubject" runat="server" Width="403px">
        </asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" valign="top">

        <asp:Label ID="lblMessage" runat="server" Text="Message"></asp:Label>
                </td>
                <td>

        <textarea id="txtArea" cols="100" rows="15"  runat="server" name="S1"></textarea></td>
            </tr>
            <tr>
                <td class="style2">

        <%--<asp:Button ID="btnSendEmail" runat="server" Text="SEND" OnClick="btnSendEmail_Click" />--%>
        <asp:Button ID="btnSendEmail" runat="server" Text="SEND" onclick="btnSendEmail_Click1"  />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
        <br />

        <br />

        <br />

        <br />

        <br />

        <br />

        <br />

    </div>
    </form>
</body>
</html>
        
